package com.bit.blog.common.exception;

import lombok.Data;

//进行自定义异常；
@Data
public class BlogException extends RuntimeException {
    private int code;
    private String errMsg;//错误信息的处理；
    public BlogException(int code,String errMsg){
        this.code=code;
        this.errMsg=errMsg;

    }
    public BlogException(String errMsg){
        this.errMsg=errMsg;

    }
}
